xend: Don't allow migrate with assigned PCI devs.
authorKeir Fraser <keir@xensource.com>
Sun, 1 Jul 2007 21:10:13 +0000 (22:10 +0100)
committerKeir Fraser <keir@xensource.com>
Sun, 1 Jul 2007 21:10:13 +0000 (22:10 +0100)
This can potentially cause a whole machine crash, which I think has
been seen in the wild.  The case in the wild was caused by xendomains
auto-resuming domains on reboot, so it wasn't even operator error.

There's no sane way to migrate or suspend domains with PCI devs,
so I disallow it completely.

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
tools/python/xen/xend/server/pciif.py

index 68af9d78cc4b9283d8f2277c2b3ef7826efdbd15..90b24202309a6f3378e52ab8f8045e88d376953d 100644 (file)
@@ -185,3 +185,6 @@ class PciController(DevController):
 
     def waitForBackend(self,devid):
         return (0, "ok - no hotplug")
+
+    def migrate(self, config, network, dst, step, domName):
+        raise XendError('Migration not permitted with assigned PCI device.')